package org.example;

public abstract class Animal {
    String name;
    public abstract void eat();
    public abstract void sleep();

}
class Dog extends Animal {
    public void eat() {
        System.out.println("Dog is eating");
    }
    public void sleep() {
        System.out.println("Dog is sleeping");}

    public void bark() {
        System.out.println("Dog is barking");
    }
}
class Cat extends Animal {
    public void eat() {
        System.out.println("Cat is eating");
    }
    public void sleep() {
        System.out.println("Cat is sleeping");
    }
    public void meow() {
        System.out.println("Cat is meowing");
    }
}